function sta(){
	ban()
	style_css()
	text_un()
	ban01_bu()
	playing="" 
	tv_play()
    $(".ban_bu div").eq(0).css("background","url(http://www.miyuediy.com/image/ban_bu_hover.jpg)").css("color","#fff")
	ly_ban()
	playing2=""
	ly_ban_play()
	text_img()
	}
	
	
function style_css(){
	$(".mid_01_ban_kz").css("opacity","0.4")
	

	}



function ban(){
	$(".ban_bu div").mouseover(function (){
		$(".ban_bu div").css("background","url(http://www.miyuediy.com/image/ban_bu.jpg)").css("color","#9b9b9b")
		$(this).css("background","url(image/ban_bu_hover.jpg)").css("color","#fff")
		})
	}
	
	
	
function text_un(){
	$(".text_under_ti li").mouseover(function (){
		$(".text_under_ti li[class]").removeClass("text_ul_li")
		$(this).addClass("text_ul_li")
		
		var text_index=$(".text_under_ti li").index(this)
		
		for (i=0; i<$(".text_under_ms").length;i++){
			$(".text_under_ms").eq(i).css("display","none")
			}
		
		$(".text_under_ms").eq(text_index).css("display","block")
		})
	
	}
	
	
	
	
function ban01_bu(){
	$(".ban_bu div").mouseover(function (){
		
		var a=$(".ban_bu div").index($(this))
        $(".ban_img img").css("display","none")
		$(".ban_img img").eq(a).css("display","block")
		tv_play(a)
     })
	}
	
	
	
function tv_play(i){
   clearInterval(playing)
	if(i==undefined){
	i=1;}
    else{i=i+1}
	playing=setInterval(function(){
		if(i>=$(".ban_img img").length){ i=0}
	    $(".ban_img img").css("display","none")
		$(".ban_img img").eq(i).fadeTo("slow","1")
		$(".ban_bu div").css("background","url(http://www.miyuediy.com/image/ban_bu.jpg)").css("color","#9b9b9b")
		$(".ban_bu div").eq(i).css("background","url(image/ban_bu_hover.jpg)").css("color","#fff")
		i=i+1
		},6000)
	}
	
	
	
	
function ly_ban(){
	$(".mid_01_ban_kz_ul li").mouseover(function (){
		
		var a=$(".mid_01_ban_kz_ul li").index($(this))
        $(".mid_01_ban img").css("display","none")
		$(".mid_01_ban img").eq(a).css("display","block")
        $(".mid_01_ban_kz_ul li").css("background","#ccc")
		$(".mid_01_ban_kz_ul li").eq(a).css("background","#fff")
		ly_ban_play(a)
     })
	}
	
	
	
function ly_ban_play(i){
   clearInterval(playing2)
	if(i==undefined){
	i=1;}
    else{i=i}
	playing2=setInterval(function(){
		if(i>=$(".mid_01_ban img").length){ i=0}
	    $(".mid_01_ban img").css("display","none")
		$(".mid_01_ban img").eq(i).css("display","block")
		$(".mid_01_ban_kz_ul li").css("background","#ccc")
		$(".mid_01_ban_kz_ul li").eq(i).css("background","#fff")
		i=i
		},100)
	}
	
	
	
	
	
	
	
function text_img(){
	$(".text_top_le li img").mouseover(function (){
	var index1=$(".text_top_le li img").index(this)
	$(".text_top_ri  img").css("display","none")
	$(".text_top_ri  img").eq(index1).css("display","block")
		})
		
		
		
	}